package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.PortDao;
import com.home.qh.model.Port;
import com.home.qh.service.PortManager;

@Service("portManager")
public class PortManagerImpl extends GenericManagerImpl<Port, Long> implements	PortManager {
	PortDao portDao;

    @Autowired
    public PortManagerImpl(PortDao portDao) {
        super(portDao);
        this.portDao = portDao;
    }

    public List<Port> getPortByCodeAndName(String portCode,	String portName) {
		return portDao.getPortByCodeAndName(portCode, portName);
	}

	public List<Port> getPortByPort(Port port, String sort, boolean desc, int startResult, int maxResults) {
		return portDao.getPortByPort(port, sort, desc, startResult, maxResults);
	}

}
